﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeProfileProjectEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.HomeProfileProjectEdit" %>
<owc:OwDetailsView ID="HomeProfileProjectDv" runat="server" AutoGenerateRows="False"
    SkinID="lvDetail" DataKeyNames="OpenHomeProfileProjectID" DataSourceID="HomeProfileProjectOds"
    EnableModelValidation="True" OwNotificationID="">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="GeneralInfo" />
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false" />
                        <br />
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="InfoLabel" /></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Name" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBoxFormField" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$ OwR:NameNotEmpty %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="NameTxt" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="WorkProcess" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileWorkProcessOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileWorkProcessEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileWorkProcessBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="continentID" Type="Int64" />
                                        <asp:Parameter Name="countryID" Type="Int64" />
                                        <asp:Parameter Name="provinceID" Type="Int64" />
                                        <asp:Parameter Name="districtID" Type="Int64" />
                                        <asp:Parameter Name="wardID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="companyID" Type="Int64" />
                                        <asp:Parameter DbType="Guid" Name="openHomeProfileDetailID" />
                                        <asp:Parameter Name="jobTitleID" Type="Int64" />
                                        <asp:Parameter Name="jobPositionID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="WorkProcessCbb" runat="server" DataSourceID="HomeProfileWorkProcessOds"
                                    SkinID="OwComboBox" DataTextField="Name" DataValueField="OpenHomeProfileWorkProcessID"
                                    SelectedValue='<%# Bind("WorkProcessID") %>' EmptyMessage="<%$OwR:WorkProcessSelect %>">
                                </owc:OwComboBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$ OwR:WorkProcessSelect %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="WorkProcessCbb" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="HomeProfileDetails" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileDetailOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileDetailsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                        <asp:Parameter Name="firstNameID" Type="Int64" />
                                        <asp:Parameter Name="lastNameID" Type="Int64" />
                                        <asp:Parameter Name="isDefault" Type="Boolean" />
                                        <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                        <asp:Parameter Name="fiveElementID" Type="Int32" />
                                        <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                        <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                        <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                        <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                        <asp:Parameter Name="hometownWardID" Type="Int64" />
                                        <asp:Parameter Name="zodiacID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="HomeProfileDetailCbb" runat="server" DataSourceID="HomeProfileDetailOds"
                                    SkinID="OwComboBox" DataTextField="FullName" DataValueField="OpenHomeProfileDetailID"
                                    SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>' EmptyMessage="<%$ OwR:HomeProfileDetailSelect %>">
                                </owc:OwComboBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="<%$ OwR:HomeProfileDetailSelect %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="HomeProfileDetailCbb" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Project" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="ProjectOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwProjectsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwProjectsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="networkID" Type="Int64" />
                                        <asp:Parameter Name="portalID" Type="Int64" />
                                        <asp:Parameter Name="code" Type="String" />
                                        <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                        <asp:Parameter Name="isHot" Type="Boolean" />
                                        <asp:Parameter Name="enableBegin" Type="DateTime" />
                                        <asp:Parameter Name="enableEnd" Type="DateTime" />
                                        <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                        <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                        <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                        <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                        <asp:Parameter Name="isApproved" Type="Boolean" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean"  DefaultValue="false"/>
                                        <asp:Parameter Name="allowComment" Type="Boolean" />
                                        <asp:Parameter DbType="Guid" Name="creatingUser" />
                                        <asp:Parameter DbType="Guid" Name="editingUser" />
                                        <asp:Parameter DbType="Guid" Name="deletingUser" />
                                        <asp:Parameter Name="categoryID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="isEnabled" Type="Boolean" />
                                        <asp:Parameter Name="isDraft" Type="Boolean" />
                                        <asp:Parameter Name="cooperationLevelID" Type="Int64" />
                                        <asp:Parameter Name="isOpen" Type="Boolean" />
                                        <asp:Parameter Name="isAttachedFile" Type="Boolean" />
                                        <asp:Parameter Name="projectBegin" Type="DateTime" />
                                        <asp:Parameter Name="projectEnd" Type="DateTime" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="ProjectCbb" runat="server" DataSourceID="ProjectOds" DataTextField="CategoryName"
                                    SkinID="OwComboBox" DataValueField="ProjectID" SelectedValue='<%# Bind("ProjectID") %>'
                                    EmptyMessage="<%$OwR:ProjectSelect %>">
                                </owc:OwComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Parent" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileProjectParentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileProjectsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileProjectsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="openHomeProfileDetailID" Type="Int64" />
                                        <asp:Parameter Name="workProcessID" Type="Int64" />
                                        <asp:Parameter Name="projectID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="HomeProfileProjectParentCbb" runat="server" DataSourceID="HomeProfileProjectParentOds"
                                    SkinID="OwComboBox" DataTextField="Name" DataValueField="OpenHomeProfileProjectID"
                                    SelectedValue='<%# Bind("ParentID") %>' EmptyMessage="<%$ OwR:ParentSelect %>">
                                </owc:OwComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="StartDate" />
                            </td>
                            <td>
                                <owc:OwDateTimePicker ID="StartDatePicker" runat="server" SkinID="" SelectedDate='<%# Bind("StartDate") %>'
                                    OwDefaultValue="<%$ Ow:DateTime.Now %>">
                                </owc:OwDateTimePicker>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="EndDate" />
                            </td>
                            <td>
                                <owc:OwDateTimePicker ID="EndDatePicker" runat="server" SkinID="" SelectedDate='<%# Bind("EndDate") %>'
                                    OwDefaultValue="<%$ Ow:DateTime.Now %>">
                                </owc:OwDateTimePicker>
                                <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="StartDatePicker"
                                    ControlToValidate="EndDatePicker" ErrorMessage="<%$ OwR:EndGreaterThanEqualStartDate %>"
                                    ValidationGroup="VDGroup" Operator="GreaterThanEqual"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="IsDeleted" />
                            </td>
                            <td>
                                <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%# Bind("IsDeleted") %>'
                                    SkinID="OwCheckBoxAdmin" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Description" />
                            </td>
                            <td>
                                <owc:OwEditor ID="DescriptionEditor" runat="server" Content='<%# Bind("Description") %>'
                                    SkinID="OwEditorBrief">
                                </owc:OwEditor>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="GeneralInfo" />
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false" />
                        <br />
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="InfoLabel" /></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="Name" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBoxFormField" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$ OwR:NameNotEmpty %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="NameTxt" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="WorkProcess" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileWorkProcessOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileWorkProcessEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileWorkProcessBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="continentID" Type="Int64" />
                                        <asp:Parameter Name="countryID" Type="Int64" />
                                        <asp:Parameter Name="provinceID" Type="Int64" />
                                        <asp:Parameter Name="districtID" Type="Int64" />
                                        <asp:Parameter Name="wardID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="companyID" Type="Int64" />
                                        <asp:Parameter DbType="Guid" Name="openHomeProfileDetailID" />
                                        <asp:Parameter Name="jobTitleID" Type="Int64" />
                                        <asp:Parameter Name="jobPositionID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="WorkProcessCbb" runat="server" DataSourceID="HomeProfileWorkProcessOds"
                                    SkinID="OwComboBox" DataTextField="Name" DataValueField="OpenHomeProfileWorkProcessID"
                                    SelectedValue='<%# Bind("WorkProcessID") %>' EmptyMessage="<%$OwR:WorkProcessSelect %>">
                                </owc:OwComboBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$ OwR:WorkProcessSelect %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="WorkProcessCbb" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="HomeProfileDetails" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileDetailOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileDetailsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                        <asp:Parameter Name="firstNameID" Type="Int64" />
                                        <asp:Parameter Name="lastNameID" Type="Int64" />
                                        <asp:Parameter Name="isDefault" Type="Boolean" />
                                        <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                        <asp:Parameter Name="fiveElementID" Type="Int32" />
                                        <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                        <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                        <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                        <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                        <asp:Parameter Name="hometownWardID" Type="Int64" />
                                        <asp:Parameter Name="zodiacID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="HomeProfileDetailCbb" runat="server" DataSourceID="HomeProfileDetailOds"
                                    SkinID="OwComboBox" DataTextField="FullName" DataValueField="OpenHomeProfileDetailID"
                                    SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>' EmptyMessage="<%$ OwR:HomeProfileDetailSelect %>">
                                </owc:OwComboBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="<%$ OwR:HomeProfileDetailSelect %>"
                                    Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="HomeProfileDetailCbb" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="Project" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="ProjectOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwProjectsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwProjectsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="networkID" Type="Int64" />
                                        <asp:Parameter Name="portalID" Type="Int64" />
                                        <asp:Parameter Name="code" Type="String" />
                                        <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                        <asp:Parameter Name="isHot" Type="Boolean" />
                                        <asp:Parameter Name="enableBegin" Type="DateTime" />
                                        <asp:Parameter Name="enableEnd" Type="DateTime" />
                                        <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                        <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                        <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                        <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                        <asp:Parameter Name="isApproved" Type="Boolean" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean" />
                                        <asp:Parameter Name="allowComment" Type="Boolean" />
                                        <asp:Parameter DbType="Guid" Name="creatingUser" />
                                        <asp:Parameter DbType="Guid" Name="editingUser" />
                                        <asp:Parameter DbType="Guid" Name="deletingUser" />
                                        <asp:Parameter Name="categoryID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="isEnabled" Type="Boolean" />
                                        <asp:Parameter Name="isDraft" Type="Boolean" />
                                        <asp:Parameter Name="cooperationLevelID" Type="Int64" />
                                        <asp:Parameter Name="isOpen" Type="Boolean" />
                                        <asp:Parameter Name="isAttachedFile" Type="Boolean" />
                                        <asp:Parameter Name="projectBegin" Type="DateTime" />
                                        <asp:Parameter Name="projectEnd" Type="DateTime" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="ProjectCbb" runat="server" DataSourceID="ProjectOds" DataTextField="CategoryName"
                                    SkinID="OwComboBox" DataValueField="ProjectID" SelectedValue='<%# Bind("ProjectID") %>'
                                    EmptyMessage="<%$OwR:ProjectSelect %>">
                                </owc:OwComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Parent" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="HomeProfileProjectParentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileProjectsEntity"
                                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileProjectsBLL"
                                    UpdateMethod="OwUpdate">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="isDeleted" Type="Boolean" DefaultValue="false" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="openHomeProfileDetailID" Type="Int64" />
                                        <asp:Parameter Name="workProcessID" Type="Int64" />
                                        <asp:Parameter Name="projectID" Type="Int64" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox ID="HomeProfileProjectParentCbb" runat="server" DataSourceID="HomeProfileProjectParentOds"
                                    SkinID="OwComboBox" DataTextField="Name" DataValueField="OpenHomeProfileProjectID"
                                    SelectedValue='<%# Bind("ParentID") %>' EmptyMessage="<%$OwR:ParentSelect %>">
                                </owc:OwComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="StartDate" />
                            </td>
                            <td>
                                <owc:OwDateTimePicker ID="StartDatePicker" runat="server" SkinID="" SelectedDate='<%# Bind("StartDate") %>'
                                    OwDefaultValue="<%$ Ow:DateTime.Now %>">
                                </owc:OwDateTimePicker>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="EndDate" />
                            </td>
                            <td>
                                <owc:OwDateTimePicker ID="EndDatePicker" runat="server" SkinID="" SelectedDate='<%# Bind("EndDate") %>'
                                    OwDefaultValue="<%$ Ow:DateTime.Now %>">
                                </owc:OwDateTimePicker>
                              <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="StartDatePicker"
                                    ControlToValidate="EndDatePicker" ErrorMessage="<%$ OwR:EndGreaterThanEqualStartDate %>"
                                    ValidationGroup="VDGroup" Operator="GreaterThanEqual"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="IsDeleted" />
                            </td>
                            <td>
                                <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%# Bind("IsDeleted") %>'
                                    SkinID="OwCheckBoxAdmin" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="Description" />
                            </td>
                            <td>
                                <owc:OwEditor ID="DescriptionEditor" runat="server" Content='<%# Bind("Description") %>'
                                    SkinID="OwEditorBrief">
                                </owc:OwEditor>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="HomeProfileProjectOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileProjectsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileProjectsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="openHomeProfileProjectID" QueryStringField="ID" Type="Int64" />
    </SelectParameters>
</owc:OwObjectDataSource>
